package com.ylbh.common.pojo.sys.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ylbh.common.validator.group.AddGroup;
import com.ylbh.common.validator.group.UpdateGroup;
import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author: czx
 * @date: 2019/08/23 17:01
 */
@Data
public class SysUserDTO implements Serializable {

    @TableId
    private Long userId;

    /**
     * 用户名
     */
    @NotBlank(message="用户名不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String username;

    /**
     * 密码
     */
    @NotBlank(message="密码不能为空", groups = AddGroup.class)
    private String password;

    /**
     * 盐
     */
    private String salt;

    /**
     * 邮箱
     */
    @NotBlank(message="邮箱不能为空", groups = {AddGroup.class, UpdateGroup.class})
    @Email(message="邮箱格式不正确", groups = {AddGroup.class, UpdateGroup.class})
    private String email;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 状态  0：禁用   1：正常
     */
    private Integer status;

    /**
     * 角色ID列表
     */
    @TableField(exist=false)
    private List<Long> roleIdList;

    /**
     * 创建者ID
     */
    private Long createUserId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 最后登录的ip地址
     */
    private String ip;

    /**
     * 用户标识  10 自营 20 第三方
     */
    private Integer type;

    /**
     * 商家所属店铺id
     */
    private Integer storeId;

    /**
     * 积分开启标识 0 未开启  1 开启
     */
    private double flag;

    /**
     * 最后登录时间
     */
    private Date lastLoginTime;



    private String artCode;
    private String name;
    private  Integer enterpriseType;
    private String directors;
    private String directorMoblie;
    private String address;
    private String bankName;
    private String bankUsername;
    private String bankNo;
    private String settlement;
    private String wxNo;
    private String fax;
    private String remarks;
    private List<String> operatingQualifiedImgurl;
    private String img;
    private String nikeName;
    private Long provinceId;
    private Long cityId;
    private Long areaId;
    private String province;
    private String city;
    private String area;
}
